package com.henu.rescue.mapper;

import com.henu.rescue.entity.Order;
import com.henu.rescue.entity.VO.OrderVO;
import com.henu.rescue.utils.Page;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface OrderMapper {
    Integer initOrder(Order order);

    List<OrderVO> selectOrdeInfoByPage(Page<OrderVO> page);

    int getCountByPage(Page<OrderVO> page);

    Integer delLogicById(String orderId);

    Integer updateStatus(String orderId, Integer status);

    Integer selectById(String orderId);

    Order getOrderByID(String orderId);

    Integer updateOrder(Order order);

    Integer getOrderCount();
}
